﻿using System.IO;
using Framework.Core.Io;

namespace Framework.Core.Process.Tasks
{
    internal struct Copy : ICommand
    {
        public Copy(string source, string dest)
            : this()
        {
            Arguments = string.Format(@"/Y /R /Q /i ""{0}"" ""{1}""", source, dest);
        }

        public string Name { get { return Path.GetFileNameWithoutExtension(FileName); } }
        public string FileName { get { return @"C:\Windows\System32\xcopy.exe"; } }
        public string Arguments { get; private set; }
        public bool IsNative { get { return true; } }
    }
}
